var express = require("express");
var router = express.Router();

router.get("/", function (req, res) {
  if (req.signedCookies.uname) {
    res.send(req.signedCookies.uname);
  } else {
    res.send("0");
  }
});

router.get("/showLoginPage", function (req, res) {
  // res.render("login", { title: "Express", username: "" });
  console.log(res.render("login", { title: "Express", username: "" }));
});
module.exports = router;
